body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f9; /* 背景颜色保持不变 */
    color: #333; /* 文本颜色 */
    min-width: 320px; /* 防止移动端过度挤压 */
}

h1 {
    text-align: center;
    color: #8A44D4; /* 头部颜色 */
}

.options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 0 auto 15px;
    padding: 10px 0;
    max-width: 800px;
    width: 100%;
}

label {
    font-size: 18px;
    margin-right: 10px;
    color: #333; /* 标签颜色 */
}

button {
    padding: 10px 15px;
    font-size: 16px;
    color: white;
    background-color: #8A44D4; /* 按钮颜色 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #9626eb; /* 鼠标悬停的颜色 */
}

#releaseList {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.release-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 按钮容器，确保按钮与下载链接排在同一行 */
.release-item a {
    display: inline-block;
    margin-top: 10px;
    color: #722bf2; /* 下载链接颜色 */
    text-decoration: none;
    transition: color 0.3s;
}

.release-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.release-item .btn {
    display: inline-block;
    padding: 6px 10px;  /* 调整这里的 padding，使按钮变窄 */
    margin-left: 10px;
    background-color: #8A44D4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.release-item .btn:hover {
    background-color: #9626eb;
}


.release-item h2 {
    margin: 0;
    font-size: 20px;
    color: #333; /* Release 项目的标题颜色 */
}

.release-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #555; /* Release 项目的内容颜色 */
}

.release-item a {
    display: block;
    margin-top: 10px;
    color: #722bf2; /* 下载链接颜色 */
    text-decoration: none;
    transition: color 0.3s;
}



/* 下拉框样式 */
select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333; /* 下拉框文本颜色 */
    margin-right: 10px;
    transition: border-color 0.3s;
    -webkit-appearance: none;  /* 去掉默认样式的下拉箭头 */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>'); /* 自定义下拉箭头 */
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px;
}

select:focus {
    border-color: #8A44D4; /* 聚焦时边框颜色 */
    outline: none;
}

/* 选项样式 */
option {
    padding: 10px;
    background-color: #fff;
    color: #333; /* 下拉选项颜色 */
}

/* 美化标签 */
label {
    font-size: 18px;
    margin-right: 10px;
    color: #333; /* 标签颜色 */
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
    gap: 8px;
    min-width: 80px;
    justify-content: center;
}

.btn-download {
    background: linear-gradient(135deg, #8A44D4, #6C2AA8);
    color: white !important;
}

.btn-release {
    background: linear-gradient(135deg, #6C2AA8, #4F1D7A);
    color: white;
}

.btn-repo {
    background: linear-gradient(135deg, #4F1D7A, #371356);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    vertical-align: middle;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #8A44D4;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.proxy-label {
    position: static; /* 移除绝对定位 */
    top: auto;
    white-space: nowrap;
    color: #666;
    font-size: 14px;
}

.proxy-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px; /* 增加左右间距 */
}

/* 页脚样式 */
.powered-footer {
    text-align: center;
    margin-top: 40px;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.powered-by {
    color: #666;
    font-size: 0.9em;
    text-decoration: none;
    transition: color 0.3s;
}

.powered-by:hover {
    color: #8A44D4;
}

/* 增强加载动画可见性 */
.loader {
    backdrop-filter: blur(2px); /* 添加背景模糊 */
    background: rgba(255, 255, 255, 0.98); /* 更不透明的背景 */
}

.spinner {
    border-top-color: #8A44D4;
    border-width: 5px;
    width: 50px;
    height: 50px;
}

.loader {
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.98);
}
.spinner {
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

/* 确保加载动画层级 */
.loader {
    z-index: 9999;
}

/* 增强错误提示可见性 */
.error {
    padding: 20px;
    margin: 20px 0;
    background: #ffebee;
    border: 2px solid #ffcdd2;
    border-radius: 8px;
}


@keyframes spin {
    0% { transform: rotate(0deg); filter: drop-shadow(0 0 2px rgba(138, 68, 212, 0.5)); }
    100% { transform: rotate(360deg); filter: drop-shadow(0 0 4px rgba(138, 68, 212, 0.8)); }
}


@media (max-width: 480px) {
    .options {
        gap: 10px;
    }
    
    .proxy-container {
        order: 1; /* 换行显示 */
        width: 100%;
        justify-content: center;
    }
}
/* 加载动画样式 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8A44D4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader .text {
    margin-top: 15px;
    color: #666;
    font-size: 16px;
}

/* 错误提示样式 */
.error {
    padding: 20px;
    background: #ffe6e6;
    border: 1px solid #ffb3b3;
    border-radius: 8px;
    color: #cc0000;
}
